/*
 * @Author: wwl 2967796480@qq.com
 * @Date: 2023-08-08 08:58:00
 * @LastEditors: wwl 2967796480@qq.com
 * @LastEditTime: 2023-08-29 16:28:47
 * @FilePath: \ConstantBlueCloud_WEB_USER_DZ1\src\api\dataOverview.ts
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
/*
 * @Author: wwl 2967796480@qq.com
 * @Date: 2023-08-08 08:58:00
 * @LastEditors: wwl 2967796480@qq.com
 * @LastEditTime: 2023-08-19 16:21:08
 * @FilePath: \ConstantBlueCloud_WEB_USER_DZ1\src\api\dataOverview.ts
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import Request from '@/libs/request'

/**web 首页 多设备 数据概览-水质总览 */
export const uSelectWebMoreDevDataPandect = (data: { userId: string }) => {
  console.log(data);

  return Request.get<DataOverview.OverView>('/platFormSubUser/selectDevDataPandect', { platFormSubUserId: data.userId })
}




/**web 首页 多设备 数据概览-水质分析 */
export const uSelectWebMoreDevDataAnalyse = (data: { userId: string }) =>
  Request.get<DataOverview.Analyze>('/platFormSubUser/selectDevDataAnalyse', { platFormSubUserId: data.userId })

/**web 首页 多设备 数据概览-设备总览 */
export const uSelectWebMoreDevStatusPandect = (data: { userId: string }) =>
  Request.get<DataOverview.DevOverview>('platFormSubUser/selectDevStatusPandect', { platFormSubUserId: data.userId })

/**web 首页 多设备 数据概览-快捷操作 */
export const uSelectQuickMakeList = (data: { userId: string }) =>
  Request.get<DataOverview.QuicklyClick>('/user/uSelectQuickMakeList', { platFormSubUserId: data.userId })

/**web 首页 多设备 数据概览---  所有单个设备数据 */
export const uSelectMyDevListDataAnalyse = (data: { userId: string }) =>
  Request.get<DataOverview.DeviceListData[]>('/user/uSelectMyDevListDataAnalyse', { platFormSubUserId: data.userId })

/**web 首页 多设备 数据概览-异常警报 */
export const uSelectDevExceptionReport = (data: { userId: string }) =>
  Request.get<DataOverview.AlarmDevLog>('/platFormSubUser/selectDevExceptionReport', { platFormSubUserId: data.userId })

/**web 首页 多设备 数据概览--- 操作日志 */
export const uSelectDevMakeLog = (data: { userId: string }) =>
  Request.get<AlaramLog[]>('/platFormSubUser/selectDevMakeLog', { platFormSubUserId: data.userId })
